﻿<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>

<html>
<head>
    <meta charset="utf-8"/>
    <link href="css/themes/default/easyui.css" rel="stylesheet"/>
    <link href="css/themes/icon.css" rel="stylesheet"/>
    <link href="css/themes/color.css" rel="stylesheet"/>
    <link href="css/apply.css" rel="stylesheet"/>
    <script src="script/jquery.min.js"></script>
    <script src="script/jquery.easyui.min.js"></script>
    <title>服务申请</title>
    <style>

    </style>
</head>
<body>
<script>
    var mailTypeName = ["无", "日用品", "衣物", "文件", "蔬果"]
</script>
<form action="queryWaybill1.do">
    <input type="text" name="waybill_no">
    <input type="submit" value="扫描">
</form>
<c:forEach items="${waybill1}" var="waybill1">
<form action="addWarehouse.do" method="get">
    <div class="server">
        <h3 class="apply_title">入库界面</h3>
        <table class="table">
            <tr>
                <td class="first">快递编号</td>
                <td class="input"><input type="text" name="waybillNo" id="waybillNo" value="${waybill1.waybillNo}"
                                         readonly></td>
            </tr>
            <tr>
                <td colspan="6" class="head">寄件人信息</td>

            </tr>
            <tr>

                <td class="first">寄件人：</td>
                <td class="input"><input type="text" name="sender_name" value="${waybill1.senderName}" readonly/></td>
                <td class="first">手机：</td>
                <td class="input"><input type="text" name="sender_phone" value="${waybill1.senderPhone}" readonly/></td>
                <td class="first">地址：</td>
                <td class="input"><input type="text" name="sender_address" value="${waybill1.senderAddress}" readonly/>
                </td>
            </tr>
            <tr>
                <td colspan="6" class="head">收件人信息</td>
            </tr>
            <tr>
                <td class="first">收件人<span class="xing">*</span>：</td>
                <td class="input"><input type="text" name="recipient_name" value="${waybill1.recipientName}" readonly/>
                </td>
                <td class="first">手机<span class="xing">*</span>：</td>
                <td class="input"><input type="text" name="recipient_phone" value="${waybill1.recipientPhone}"
                                         readonly/></td>
                <td class="first">地址：</td>
                <td class="input"><input type="text" name="recipient_address" value="${waybill1.recipientAddress}"
                                         readonly/></td>
            </tr>
            <tr>
                <td colspan="6" class="head">快递信息</td>
            </tr>
            <tr>
                <td class="first">收费价格<span class="xing">*</span>：</td>
                <td class="input">
                    <input type="text" id="mail_cost" name="mail_cost" value="${waybill1.mailCost}" readonly>
                </td>
                <td class="first">快递类型<span class="xing">*</span>：</td>
                <td class="input">
                    <input id="mail_type" name="mail_type" readonly="readonly">

                    </input>
            <tr>
                <td colspan="6" style="height:40px;">
                    <input type="submit" value="入库" class="easyui-linkbutton c1" style="width:50px;">
                </td>
            </tr>
        </table>
    </div>

    </c:forEach>
</form>

<script>
    var mailType1 = ${waybill1[0].mailType}
        $("#mail_type").val(mailTypeName[mailType1])
</script>
</body>
</html>